if (bytes_read < 0)
{
ot_util_set_error_from_errno (error, errno);
+ g_prefix_error (error, "lgetxattr (%s, %s) failed: ", path, p);
goto out;
}
if (bytes_read == 0)
if (lgetxattr (path, p, buf, bytes_read) < 0)
{
ot_util_set_error_from_errno (error, errno);
+ g_prefix_error (error, "lgetxattr (%s, %s) failed: ", path, p);
g_free (buf);
goto out;
}
if (errno != ENOTSUP)
{
ot_util_set_error_from_errno (error, errno);
+ g_prefix_error (error, "llistxattr (%s) failed: ", path);
goto out;
}
}
if (llistxattr (path, xattr_names, bytes_read) < 0)
{
ot_util_set_error_from_errno (error, errno);
+ g_prefix_error (error, "llistxattr (%s) failed: ", path);
goto out;
}
xattr_names_canonical = canonicalize_xattrs (xattr_names, bytes_read);
if (loop_err)
{
ot_util_set_error_from_errno (error, errno);
+ g_prefix_error (error, "lsetxattr (%s, %s) failed: ", path, name);
goto out;
}
}